package com.ziyueyuwen.xiniao.bean.ao;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author wancheng  on 2019/1/22.
 */
public class LessonUpdateVO{

    @NotNull(message = "lessonId不能为空")
    private Integer lessonId;

    @NotEmpty(message = "上课日期不能为空")
    private String day;

    @NotNull(message = "上课时间不能为空")
    private String startTime;

    @Min(value = 0,message = "durationOfHour最小值为{value}")
    @Max(value = 24,message = "durationOfHour最大值为{value}")
    private Integer durationOfHour;

    @Min(value = 0,message = "durationOfMinute最小值为{value}")
    @Max(value = 60,message = "durationOfMinute最大值为{value}")
    private Integer durationOfMinute;

    private String teacherAccount;

    @Max(value = 100,message = "seatNum最大值为{value}")
    private Integer seatNum;

    public Integer getLessonId() {
        return lessonId;
    }

    public void setLessonId(Integer lessonId) {
        this.lessonId = lessonId;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public Integer getDurationOfHour() {
        return durationOfHour;
    }

    public void setDurationOfHour(Integer durationOfHour) {
        this.durationOfHour = durationOfHour;
    }

    public Integer getDurationOfMinute() {
        return durationOfMinute;
    }

    public void setDurationOfMinute(Integer durationOfMinute) {
        this.durationOfMinute = durationOfMinute;
    }

    public String getTeacherAccount() {
        return teacherAccount;
    }

    public void setTeacherAccount(String teacherAccount) {
        this.teacherAccount = teacherAccount;
    }

    public Integer getSeatNum() {
        return seatNum;
    }

    public void setSeatNum(Integer seatNum) {
        this.seatNum = seatNum;
    }

    @Override
    public String toString() {
        return "LessonUpdateVO{" +
                "lessonId=" + lessonId +
                ", day='" + day + '\'' +
                ", startTime='" + startTime + '\'' +
                ", durationOfHour=" + durationOfHour +
                ", durationOfMinute=" + durationOfMinute +
                ", teacherAccount='" + teacherAccount + '\'' +
                ", seatNum=" + seatNum +
                '}';
    }
}
